home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / egrep.zip / MAKEFILE < prev    next >
Text File  |  1988-03-31  |  616b  |  24 lines

  1. # optional items for ENV:
  2. # -DBSD            make -i work as in System V
  3. # -I.            use regexp.h in current directory, not /usr/include
  4. # -DEGREP=path        default /usr/bin/egrep
  5. # -DV7            invoke xread() for system time quirk
  6.  
  7. ENV= -I. -DBSD
  8.  
  9. # optional items for OBJ:
  10. # compat-sys5.o        for V7 or BSD 4.2 systems w/no getopt(3) or string(3)
  11. # regexp.o        if Henry Spencer's regexp(3) is not installed
  12. # regerror.o            "
  13. #            V8 people -- your regexp.h won't do
  14.  
  15. OBJ= regexp.o regerror.o compat-sys5.o
  16.  
  17. CFLAGS= -O -i $(ENV) 
  18.  
  19. egrep:    egrep.o $(OBJ)
  20.     cc $(CFLAGS) $(OBJ) egrep.o -o egrep
  21.  
  22. install:
  23.     mv egrep /usr/local
  24.